package nezumi.util;

import org.w3c.dom.Node;

public class XMLUtils {

	/**
	 * Auxiliary method to read a double attribute from an XML node.
	 * 
	 * @param node
	 * @param attribute
	 * @return
	 */
	public static double readDoubleAttribute(Node node, String attribute) {
		return Double.parseDouble(node.getAttributes().getNamedItem(attribute)
				.getTextContent());
	}
	
}
